﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace BCDto.WeChatComponent.WeChatNewsMaterialArticleRecord
{
    /// <summary>
    /// 微信图文素材文章记录请求信息
    /// </summary>
    public class WeChatNewsMaterialArticleRecordRequestDto
    {
        /// <summary>
        /// 文章标题
        /// </summary>
        [Display(Name ="文章标题")]
        [Required(ErrorMessage = "{0} 不能为空")]
        [StringLength(64,ErrorMessage ="{0} 最大长度为64个字符")]
        public string Title { get; set; }
        /// <summary>
        /// 作者
        /// </summary>
        [Display(Name = "作者")]
        [StringLength(64, ErrorMessage = "{0} 最大长度为8个字")]
        public string Author { get; set; }
        /// <summary>
        /// 封面素材Id
        /// </summary>
        [Display(Name = "封面素材Id")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public string ThumbMediaId { get; set; }
        /// <summary>
        /// 摘要
        /// </summary>
        public string Digest { get; set; }
        /// <summary>
        /// 是否显示封面
        /// </summary>
        [Display(Name = "是否显示封面")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public bool ShowCoverPic { get; set; }
        /// <summary>
        /// 内容
        /// </summary> 
        [Display(Name = "内容")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public string Content { get; set; }
        /// <summary>
        /// 微信内容
        /// </summary> 
        [Display(Name = "微信内容")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public string WeChatContent { get; set; }
        /// <summary>
        /// 原文链接地址
        /// </summary>
        [Display(Name = "原文链接地址")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public string ContentSourceUrl { get; set; }

        /// <summary>
        /// 是否打开评论
        /// 0为不打开，1为打开
        /// </summary>
        [Display(Name = "是否打开评论")]
        public int NeedOpenComment { get; set; }
        /// <summary>
        /// 是否粉丝才可评论，
        /// 0所有人可评论，
        /// 1粉丝才可评论
        /// </summary>
        [Display(Name = "是否粉丝才可评论")]
        public int OnlyFansCanComment { get; set; }
    }
}
